<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "{{%pre_admin_information}}".
 *
 * @property string $Info_id
 * @property string $Info_url
 * @property string $Info_time
 * @property string $Info_type
 * @property string $Info_title
 * @property string $Info_content
 * @property integer $status
 * @property string $uid
 */
class PreAdminInformation extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%pre_admin_information}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            //[['Info_url', 'Info_time', 'Info_type', 'Info_title', 'Info_content', 'status', 'uid'], 'required'],
        [['Info_url', 'Info_time', 'Info_type', 'Info_title', 'status', 'uid'], 'required'],
            [['Info_time'], 'safe'],
            [['Info_content'], 'string'],
            [['status', 'uid'], 'integer'],
            [['Info_url'], 'string', 'max' => 100],
            [['Info_type'], 'string', 'max' => 20],
            [['Info_title'], 'string', 'max' => 30],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'Info_id' => '信息ID',
            'Info_url' => '发布者的url',
            'Info_time' => '发布时间',
            'Info_type' => '信息类型',
            'Info_title' => '标题',
            'Info_content' => '内容',
            'status' => '状态',
            'uid' => '发布者ID',
        ];
    }
}
